package com.guigu.xm.lq.service.impl;

import com.guigu.xm.lq.mapper.SysAuthorizationRoleMapper;
import com.guigu.xm.lq.service.SysAuthorizationRoleService;
import com.guigu.xm.pojo.SysAuthorizationRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysAuthorizationRoleServiceImpl implements SysAuthorizationRoleService {
    @Autowired(required = false)
    SysAuthorizationRoleMapper sazrm;

    @Override
    public SysAuthorizationRole selectAuth(String method, String login_id) {
        return sazrm.selectAuth(method,login_id);
    }

    @Override
    public int addRoot(String au_id, String role_id) {
        return sazrm.addRoot(au_id,role_id);
    }

    @Override
    public int detRoot(Integer role_id) {
        return sazrm.detRoot(role_id);
    }
}
